package com.sinosoft.vaccinetoai.server.business.chatchainrecord.updatechatchainrecord.service.impl;

import com.sinosoft.vaccinetoai.dao.mapper.business.ChatChainRecordMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import com.sinosoft.vaccinetoai.server.business.chatchainrecord.updatechatchainrecord.io.UpdateChatChainRecordIO;
import com.sinosoft.vaccinetoai.server.business.chatchainrecord.updatechatchainrecord.vo.UpdateChatChainRecordVO;
import com.sinosoft.vaccinetoai.server.business.chatchainrecord.updatechatchainrecord.service.IUpdateChatChainRecordService;

import javax.annotation.Resource;

/**
 * @ClassName: UpdateChatChainRecordServiceImpl
 * @ClassNameExplain: 
 * @Description: 更新聊天链记录Service Impl
 * @author xiazhihao
 * @date 2024年10月25日 17:37
 */
@Slf4j
@Service("UpdateChatChainRecordService")
public class UpdateChatChainRecordServiceImpl implements IUpdateChatChainRecordService {


	@Resource
	private ChatChainRecordMapper chatChainRecordMapper;

	@Override
	public UpdateChatChainRecordVO updateChatChainRecord(UpdateChatChainRecordIO io) throws Exception {
        UpdateChatChainRecordVO vo = new UpdateChatChainRecordVO();

        chatChainRecordMapper.updateContent(io.getId(),io.getText());

		return vo;
	}
	
}